﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public  class OrderDetailBLL:BaseBLL <OrderDetail >
    {
        public OrderDetail od = new OrderDetail();
        public override OrderDetail GetModel()
        {
            return od;
        }
        public OrderDetailDAO dao = new OrderDetailDAO();

        #region 根据订单Id查询list
        /// <summary>
        /// 根据订单Id查询list
        /// </summary>
        /// <param name="DealInfoId"></param>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        public IList<OrderDetail> GetDealInfoId(int DealInfoId, int page, int pagesize)
        {
            return dao.GetDealInfoId(DealInfoId, page, pagesize);
        }
        #endregion

        #region 根据订单Id查询总数
        /// <summary>
        /// 根据订单Id查询总数
        /// </summary>
        /// <param name="DealInfoId"></param>
        /// <returns></returns>
        public int GetDealInfoId(int DealInfoId)
        {
            return dao.GetDealInfoId(DealInfoId);
        }
        #endregion
    }
}
